﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Store.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace ="YourStore.Models"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EditCateogry
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%var model = ViewData["Category"] as Category; %>
<h2>Edit Cateogry</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        

        <div class="create">
        <dl>
        <dt>Category:</dt>
        <dd><%: Html.TextBox("Name",model.Name) %> </dd>
        <dt>Description :</dt>
        <dd><%: Html.TextBox("Name",model.Description) %></dd>
        <dt>&nbsp;</dt>
        <dd><input type="submit" value="Save"  class="sub"/></dd>
        <dt><%: Html.ActionLink("Back to List", "Cateogry")%></dt>
        <dd>&nbsp;</dd>
        </dl>
        </div>
                               
            <%: Html.Hidden("CategoryId",model.CategoryId) %> 
             <%: Html.Hidden("Deleted",model.Deleted) %>
            
    <% } %>
</asp:Content>

